<%-- 
    Document   : newjsp1
    Created on : 2024-6-1, 11:18:25
    Author     : Administrator
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <div>
         <form action="newjsp.jsp" method="post">
            <table align="center" border="1">
                <tr><td><input type="text" name="sno"/>学号
                <input type="submit" value="查询"/></td></tr>
            /table>
         </form>
        
        <br>
        
        <form action="insert.jsp" method="post">
            <table align="center" border="1">
             <tr><td>添加信息中。。。。<%=request.getAttribute("message")==null?"":request.getAttribute("message")%></td></tr>
             <tr><td>学号：</td>       
             <td><input type="text" name="sno"  /></td></tr>
             <tr><td>姓名：</td>       
             <td><input type="text" name="sname"/></td></tr>
             <tr><td>性别：</td>       
             <td><input type="text" name="sex"  /></td></tr>
             <tr><td>宿舍号：</td>       
             <td><input type="text" name="dno"  /></td></tr>
             <tr ><td colspan="2" align="center"><input type="submit" value="添加信息"/></td></tr>
            </table>
        </form>
        </div>
        <br>
        <div>
        <form action="delete.jsp" method="post">
            <table align="center" border="1">
             <tr><td>学号：</td>       
             <td><input type="text" name="sno"  /></td></tr>
             <tr><td>姓名：</td>       
             <td><input type="text" name="sname"/></td></tr>
             <tr><td>性别：</td>       
             <td><input type="text" name="sex"  /></td></tr>
             <tr><td>宿舍号：</td>       
             <td><input type="text" name="dno"  /></td></tr>
             <tr ><td colspan="2" align="center"><input type="submit" value="修改信息"/></td></tr>
            </table>
            <br>
            <table align="center" border="1">
             <tr><td>学号：</td>       
             <td><input type="text" name="sno"  /></td></tr>
             <tr ><td colspan="2" align="center"><input type="submit" value="删除"/></td></tr>
            </table>
        </form>
        </div>
    </body>
</html>
